package exceptions;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class ConsultaNoValidaExceptionTest {

	@Test(expected=ConsultaNoValidaException.class)
	public void testException() throws ConsultaNoValidaException{
		throw new ConsultaNoValidaException();
	}

	@Test
	public void testGetMensaje() throws ConsultaNoValidaException {
		try{
			throw new ConsultaNoValidaException();
		}
		catch(ConsultaNoValidaException e){
			assertEquals("Consulta no valida.",e.getMessage());
		}
	}

}
